/*package com.ruiyi.subway.utils;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;


import com.yizooo.flower.common.Constants;
import com.yizooo.flower.jpush.api.JPushClient;
import com.yizooo.flower.jpush.api.flower.PushMsg;
import com.yizooo.flower.jpush.api.push.model.PushPayload;
import com.yizooo.flower.service.IMsgService;

public class JpushUtils {

	private  static JpushUtils jpushUtils = null;
	
	IMsgService iMsgService;
	
	private JpushUtils(){}
	
	public static synchronized JpushUtils getInstance(){
		if(jpushUtils==null)
			jpushUtils = new JpushUtils();
		return jpushUtils;
	}
	
	*//**
	 * 发送消息
	 * @param aliasList 所有接收人id 
	 * @param pusherId 推送人ID
	 * @param title  标题
	 * @param content 内容
	 * @param extrasMap {apply_code:apply_code,type:type}
	 *//*
	public void sendMessage(List<String> aliasList,String pusherId,
			String title,String content,Map<String,String> extrasMap){
		try {
			JPushClient jpushClient = new JPushClient(Constants.masterSecret, Constants.appKey, 3);
			HashMap<String,Object> paramMap = new HashMap<String,Object>();
			
			String extras = JSONUtils.map2json(extrasMap);
			paramMap.put("extras", extras);
			paramMap.put("title", title);
			paramMap.put("content", content);
			paramMap.put("msg_type", 0);	
			paramMap.put("pusher_id", pusherId);
			paramMap.put("push_time", DateUtils.getTime());
			if(iMsgService==null){
				iMsgService=(IMsgService) SpringUtils.getBean("IMsgServiceImpl");
			}
			for(String userId:aliasList){
				paramMap.put("user_id", userId);
				iMsgService.saveMsgs(paramMap);	
			}		
			PushPayload pushPayload=PushMsg.buildPushObject_android_and_ios_alias(aliasList, content, title, extrasMap);
			jpushClient.sendPush(pushPayload);
		} catch (Exception e) {
			e.printStackTrace();
		} 
	}
}
*/